<div class="view">

	<?php
	$baseUrl = Yii::app()->request->baseUrl . '/images/fugue';
	if (!Yii::app()->user->isGuest) {
		$properties = array(
			'items'=>array(
				array(
					'label'=>"<img src=\"$baseUrl/pencil.png\" />",
					'url'=>array('memberAddress/update', 'id'=>$data->_id),
					'linkOptions'=>array('title'=>'Ubah'),
				),
				array(
					'label'=>"<img src=\"$baseUrl/cross-script.png\" />",
					'url'=>'#',
					'linkOptions'=>array(
						'submit'=>array(
							'memberAddress/delete',
							'id'=>$data->_id
						),
						'title'=>'Hapus',
						'confirm'=>'Anda yakin ingin menghapus data ini?'
					)
				),
			),
			'htmlOptions'=>array(
				'class'=>'actions',
			),
			'encodeLabel'=>false,
		);
		$this->widget('zii.widgets.CMenu', $properties);
	}
	?>


	<b><?php echo CHtml::encode($data->name); ?></b><br />

	<?php echo CHtml::encode($data->street); ?>
	<br />

	<?php echo CHtml::encode($data->city); ?>
	<br />

	<?php echo CHtml::encode($data->province); ?>
	<?php echo CHtml::encode($data->postalCode); ?>

</div>